package cn.maxhou.demo.web;

import cn.maxhou.demo.comm.RoomProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoomController {
    @Autowired
    private RoomProperties roomProperties;

    @GetMapping(value = "/room")
    public String showRoomInfo(){
        return "标题:"+roomProperties.getTitle()+"地址: "+roomProperties.getAddr()+"机器数: "+roomProperties.getCount();
    }
}
